from django.shortcuts import HttpResponse

import cmdb.api.http_result as hh


def no_certification(_):
    return HttpResponse(hh.result(0, 'Are you kidding me!!!'))


def token_is_none(_):
    return HttpResponse(hh.result(0, 'token is null'))


def token_is_not_equal_to_local(_):
    return HttpResponse(hh.result(0, 'token is error'))


def data_format_error(_):
    return HttpResponse(hh.resp_result(0, 'data format error'))